package com.tsunami.demo.provider;

import com.tsunami.base.R;
import com.tsunami.demo.provider.hystrix.UserProviderFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Classname UserProvider
 * @Description TODO
 * @Date 2021-11-17 14:13
 * @Created by lx
 */
@FeignClient(value = "tsunami-auth-admin",fallback = UserProviderFallback.class)
public interface UserProvider {

    @RequestMapping(value="/user/get", method= RequestMethod.GET)
    R get();
    @RequestMapping(value="/user/info", method= RequestMethod.GET)
    R info(@RequestParam("id") Long id);
}
